<?php
declare(strict_types=1);

namespace app\model;

use think\Model;

class Admin extends Model
{
    protected $name = 'admin';
    
    // 关联角色
    public function role()
    {
        return $this->belongsTo(Role::class, 'role_id');
    }
} 